<script type="text/javascript">
function userMadeBrowserSelection(browserId, selectionParam, selectionMadeCbId) {
	var spl = selectionParam.split(/:/);
	document.forms['newArticleForm'].id_article.value = spl[3];
	document.forms.newArticleForm.submit();
}
</script>

{compa_comment}<br/>
<br/>

<form method="post" action="{addFormAction}" id="newArticleForm" name="newArticleForm">
	<table class="form">
		<tr>
			<th colspan="2">{compa_add}</th>
			<th>{tblhead_opers}</th>
		</tr>
		<tr>
			<td class="field">{compa_field_article}</td>
			<td class="value">
				<input name="id_tournament" type="hidden" value="{form_id_tournament}" />
				<input name="id_article" type="hidden" value="{form_id_article}" /><br/>
				<a href="#" onclick="return openBrowserWindow('{link_browser}');" >{compa_browse_article}</a>
			</td>
			<td class="opers"><input type="submit" class="smallbutton" value="{but_add}" /></td>
		</tr>
	</table>
</form>

<table class="list">
	<tr>
		<th>Id</th>
		<th>{compa_field_title}</th>
		<th>{compa_field_href}</th>
		<th>{tblhead_opers}</th>
	</tr>

	<!-- BEGIN tournamentarticle -->
	<tr class="{tr_class}" id="row_{id}" onmouseover="javascript: rowMouseEnter('{id}');" onmouseout="javascript: rowMouseLeave('{id}');">
		<td class="id">{id}</td>
		<td>{title}</td>
		<td><a href="{href}">{href}</a></td>
		<td class="opers">
			<a href="{link_setdefault}" class="{hidden}"><img class="texticon" src="{app_root_url}admin/images/default.gif" />{but_setdefault}</a>&#160;&#160;
			<a href="{link_del}" onclick="return confirm('{compa_del_confirm}')"><img class="texticon" src="{app_root_url}admin/images/trash.gif" />{but_delete}</a>
		</td>
	</tr>
	<!-- END tournamentarticle -->
	
</table>
<br/>
<p>{compa_legend}</p>